#pragma once

#include "SRRenderer.h"
#include "SRResource.h"

#if _GLES2_

namespace sora
{
	class ShaderProgram;
	class VertexBufferObject;
	class IndexBufferObject;

	class GLESRenderer2 : public Renderer {
	public:
		GLESRenderer2();
		virtual ~GLESRenderer2();

		void init();
		void resize(int w, int h);
		void render();
		void done();

	private:
		int screenwidth_;
		int screenheight_;
		bool loadShaders();
		std::auto_ptr<ShaderProgram> program_;


		//for dev
		VertexBufferObject *vertexBuffer_;
		IndexBufferObject *indexBuffer_;
	};

}
#endif